package org.neuedu.chapter06_0621.demo05;

public class ObjectDemo01 {
    public static void main(String[] args) {
//        Person p1 = new Person();
//        p1.test();
//        p1.name = "tom";
//        p1.test(); // tom
////
////        Person p2 = new Person();
////        p2.test();
////        p2.name = "lucy";
////        p2.test();// lucy

//        Person2 person2 = new Person2();
//        person2.age = 10;
//        person2.name = "zhangsan";
//        person2.showInfos();

//        Person3 person3 = new Person3();
//        person3.name = "zhangsan";
//        person3.setName("lisi");
//        String name = person3.getName();
//        System.out.println(name);
    }
}
